//
//  NSBundleTest.m
//  iOS Sample Code
//
//  Created by lei yu on 11-12-9.
//  Copyright (c) 2011年 lancet. All rights reserved.
//

#import "NSBundleTest.h"

@implementation NSBundleTest

// All code under test must be linked into the Unit Test bundle
-(void)testReturnFilePathInBundle{
    NSString *txtFilePath = [[NSBundle mainBundle]
                             pathForResource: @"instructions" ofType: @"txt"];
    NSLog(@"%@",txtFilePath);
    NSString *instructions = [NSString stringWithContentsOfFile: txtFilePath encoding: NSUTF8StringEncoding error: NULL];
    NSLog(@"%@",instructions);
    NSArray *birds = [[NSBundle mainBundle] pathsForResourcesOfType:@"jpg" inDirectory: @"birdImages"];
        NSLog(@"%@",birds);
}

@end
